-- GENERATED SPELL FOR [Carrion Swarmer] --


function spell0_13160(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(5416,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13160', 45000, 1)
end

function Sorts_13160(pUnit, Event)
local choix_sorts_13160 = math.random(0, 0)
if choix_sorts_13160 == 0 then
pUnit:RegisterEvent('spell0_13160', 1, 1)
end
end

function mob13160_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13160', math.random(1500, 3000), 1)
end

function mob13160_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13160_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13160_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13160, 1, 'mob13160_Action')
RegisterUnitEvent(13160, 2, 'mob13160_Leave')
RegisterUnitEvent(13160, 3, 'mob13160_Kill')
RegisterUnitEvent(13160, 4, 'mob13160_Die')
